// Tinh diem trung binh
#include <iostream>
using namespace std;
int main()
{
   int n;
   float Tong, Diem;
   Tong = 0;
   cout << "Tong so mon hoc can tinh diem trung binh:";
   cin >> n;
   for ( int i = 0; i < n; i++)
   {
      cout << "Diem mon hoc " << i + 1 << ":";
      cin >> Diem;   
      Tong = Tong + Diem;
   }
   cout << "Diem trung binh: " << Tong / n << endl;
   system ("pause");
   return 0;
}
